﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DTO.ApiEntity.Input
{
    /// <summary>
    /// 科目报销模板输入Dto
    /// </summary>
    public class SubjectExpenseInput_Dto
    {
        /// <summary>
        ///科目外键
        /// </summary>
        [Display(Name = "科目外键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string subjectId { get; set; }

        /// <summary>
        ///生成表单的Json字符串
        /// </summary>
        [Display(Name = "生成表单的Json字符串")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string jsonValue { get; set; }


        /// <summary>
        ///生成表单的Json字符串（完整版）
        /// </summary>
        [Display(Name = "生成表单的Json字符串（完整版）")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string jsonAllValue { get; set; }

        /// <summary>
        ///生成表单的Json字符串（完整版）
        /// </summary>
        [Display(Name = "判断条件字段")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string jsonIsJudge { get; set; }
    }

    public class SubjectExpenseUpdate_Dto : SubjectExpenseInput_Dto
    {
        [Display(Name = "科目报销模板详情表主键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string id { get; set; }
    }
}
